package reduce.fz.com.reduce.activity;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.fragment.WitnessFragment;

public class WitnessActivity extends BaseToolBarActivity {
    private Long teamid;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_witness);
        setToolbarTitle("见证卡片");
        initData();
        attach();
    }
    public void initData() {
        teamid = getIntent().getLongExtra("teamid", 0);
    }
    public void attach() {
        WitnessFragment fragment = WitnessFragment.create(teamid);
        getSupportFragmentManager().beginTransaction().replace(R.id.witness_container, fragment).commit();
    }

    @Override
    public void initWidget() {
    }

    @Override
    public void initListener() {
    }


}
